<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>加载中...</title>
		<script src="jquery-3.2.1.js"></script>
	</head>
	<body>
		<div id="loading"></div>
		<script>
			
		loading=document.getElementById("loading");
		var i=0;
		var list=["加载中","加载中.","加载中..","加载中..."];
		loading.innerHTML=list[0];
			setInterval(function(){
			if(i==3){
				i=0;
				loading.innerHTML=list[i];
			}else{
				++i;
				loading.innerHTML=list[i];
			}
		},300)
	</script>
	</body>
</html>
